home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Alde ADA 1: #1
/
CCCC 8804 Volume 1 Number 1 - Alde.iso
/
C
/
MISC
/
TUTOR
/
CTUTOR2.ARC
/
FORMOUT.C
< prev
next >
Encoding:
Amiga
Atari
Commodore
DOS
FM Towns/JPY
Macintosh
Macintosh JP
Macintosh to JP
NeXTSTEP
RISC OS/Acorn
Shift JIS
UTF-8
Wrap
C/C++ Source or Header
|
1986-05-27
|
384 b
|
16 lines
#include "stdio.h"
main()
{
FILE *fp;
char stuff[25];
int index;
fp = fopen("TENLINES.TXT","w"); /* open for writing */
strcpy(stuff,"This is an example line.");
for (index = 1;index <= 10;index++)
fprintf(fp,"%s Line number %d\n",stuff,index);
fclose(fp); /* close the file before ending program */
}